
<template>
  <div class="layout">
    <Layout>
      <Header>
        <Menu mode="horizontal" theme="primary" active-name="1">
          <div class="layout-logo">
            <img src="../../image/header-logo.svg" alt="" />
          </div>
          <div class="layout-nav">
            <MenuItem name="处方" to="/">
              <div class="menuImg">
                <img src="../../image/cf.svg" alt="" />
                <div>处方</div>
              </div>
            </MenuItem>
            <MenuItem name="库房" to="/Storeroom">
              
              <div class="menuImg">
                <img src="../../image/kf.svg" alt="" />
                <div>库房</div>
              </div>
            </MenuItem>
            <MenuItem name="药斗" to="/MedicineHopper">
              <div class="menuImg">
                <img src="../../image/yd.svg" alt="" />
                <div>药斗</div>
              </div>
            </MenuItem>
            <MenuItem name="管控" to="/Control">
              <div class="menuImg">
                <img src="../../image/gk.svg" alt="" />
                <div>管控</div>
              </div>
            </MenuItem>
            <MenuItem name="分析" to="/Analyse">
              <div class="menuImg">
                <img src="../../image/fx.svg" alt="" />
                <div>分析</div>
              </div>
            </MenuItem>
            <MenuItem name="排班" to="/Scheduling">
              <div class="menuImg">
                <img src="../../image/pb.svg" alt="" />
                <div>排班</div>
              </div>
            </MenuItem>
          </div>

          <div class="layout-nav-right">
            <MenuItem name="系统配置" to="/Config">
              <div class="menuImg">
                <img src="../../image/pz.svg" alt="" />
              <div>系统配置</div>
              </div>
              
            </MenuItem>
            <MenuItem name="超级管理员" to="/Admin">
              <Icon type="md-person" />
              超级管理员
            </MenuItem>
            <MenuItem name="exit" to="/Login">
              <Icon type="md-exit" style="font-size: 20px" />
            </MenuItem>
          </div>
        </Menu>
      </Header>
      <router-view />
    </Layout>
  </div>
</template>
<script>
export default {};
</script>
<style scoped>
.ivu-layout-header {
  padding: 0px !important;
  background-color: #945635 !important;
  height: 60px !important;
}
.layout {
  border: 1px solid #d7dde4;
  background: #f5f7f9;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  margin: 0px;
  height: 100vh;
}

.layout-logo {
  color: #f5f7f9;
  align-items: center;
  float: left;
  position: relative;
  top: 10px;
  left: 25px;
  padding-right: 125px;
}
.layout-nav {
  margin: auto;
  font-size: 30px;
}

.layout-nav-right {
 
  float: right;
  
}
.menuImg{
  display: flex;
color: #ffffffb3;
  align-items: center;
}
.menuImg div{
  padding-left:4px ;
}
</style>